Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​Logging.​Abstractions.​NullLogger<​T>

Assembly: Microsoft.Extensions.Logging.Abstractions

Inheritance: object → NullLogger

Implemented Interfaces

Minimalistic logger that does nothing.

Fields and Constants

public static readonly NullLogger<​T>
Instance
Returns an instance of <see cref="T:Microsoft.Extensions.Logging.Abstractions.NullLogger`1" /> .

Methods

BeginScope​(TState state)
public bool
IsEnabled​(LogLevel logLevel)
public void
Log​(LogLevel logLevel, EventId eventId, TState state, System.​Exception exception, System.​Func<​TState, System.​Exception, string> formatter)
Remarks This method ignores the parameters and does nothing.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object